package cn.eeany.zutools;

/**
 * Math1 类是
 *
 * @author xuping2
 * @date 2021-08-17 17:53
 **/
public class Math1 {
    public static void main(String[] args) {
        runAndlogTime(40);
        runAndlogTime(56);
        runAndlogTime(64);
        runAndlogTime(80);
        runAndlogTime(128);
        runAndlogTime(200);
        runAndlogTime(1000);
        runAndlogTime(2000);
        runAndlogTime(10000);
    }

    static  public void runAndlogTime(int n) {
        long now = System.currentTimeMillis();
        System.out.println(Math.pow(2, n));
        System.out.println(System.currentTimeMillis()-now);
    }


}
